package com.ftg.learn.mapper;

import com.ftg.learn.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author kangjx
 * @createTime 2022/8/16
 */
@Mapper
public interface StudentMapper {

    /**
     * 查找全部
     * @return
     */
    @Select("select * from student")
    List<Student> showStudent();


    /**
     * 查找全部
     * @return
     */
    @Select("select * from student where sno = #{sno}")
    List<Student> likeForParma(@Param("sno")String sno);


}
